//
//  SearchResultViewController.h
//  TuiTe
//
//  Created by 张 霄鹤 on 10-6-4.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ProfileImageProcesser.h"

#define ST_TWEET 0
#define ST_USER 1
#define ST_TRENDS 2
#define ST_OTHER 3


@interface SearchResultViewController : UITableViewController <UISearchBarDelegate,ProfileImageProcesserDelegate> {
	
	/**
	 * 搜索类型
	 * @see ST_XXX
	 */
	NSInteger searchType;
	
	/**
	 * 搜索关键字
	 * 主要是为了Top10那种已经含有关键字的情况
	 */
	NSString *searchKeyword;
	
	NSMutableArray *searchResult;
	
	UISearchBar *sb;
	
	BOOL renew;
	
	NSInteger nextPage;
	
	BOOL guessNext;
}

@property (nonatomic) NSInteger searchType;
@property (nonatomic, retain) NSString *searchKeyword;
@property (nonatomic, retain) IBOutlet UISearchBar *sb;

@property (nonatomic) BOOL renew;

- (void)searchUser:(NSString *)n;

/**
 * 此方法搜索关键字，因为Top10同样是使用Search
 *
 */
- (void)searchTweet:(NSString *)t;

- (void)startSearch;

@end
